#ifndef __TIMER_H__
#define __TIMER_H__

#include "Base.h"

class Timer
{
public:
	Timer();
	virtual ~Timer();

	//get the time(ms) since app runs,accuracy degree is 1ms
	static long long getTime();
	//sleep(ms),accuracy degree is 0-30ms
	static void sleep(unsigned int ms);

	//get the elapsed time as a time counter,begin() and end() used in pair;
	void begin();
	long long end();
private:
	long long m_off;
};
#endif //__TIMER_H__
